/**
 *  login script
 *
 *  @author : jihuaizhi
 *  @Time   : 2010.03.22 21:08:10 CST
 *  @note   :
 */
import com.basestone.pdlmis.view.user.*;
import com.basestone.pdlmis.vo.User;
import mx.managers.PopUpManager;
import mx.core.Application;

private function initView():void
{
    this.currentState="";
    this.LoginView_UserNameTextInput.text="";
    this.LoginView_UserNameTextInput.errorString="";
    this.LoginView_PasswordTextInput.text="";
    this.LoginView_PasswordTextInput.errorString="";

    LoginView_UserNameTextInput.text="admin";
    LoginView_PasswordTextInput.text="admin";
}

private function businessLogin():void
{
    Application.application.user=new User();
    Application.application.user.name="基怀志";
    Application.application.frameView.openWelcomeView();
}


private function projectLogin():void
{
	    Application.application.user=new User();
    Application.application.user.name="基怀志";
    Application.application.frameView.openWelcomeView();
}

private function systemLogin():void
{    Application.application.user=new User();
    Application.application.user.name="基怀志";
    Application.application.frameView.openWelcomeView();
}

